home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
11
/
0
/
DISK1105.ZIP
/
HELP
/
#EDIT8.4
< prev
next >
Wrap
Text File
|
1988-06-01
|
4KB
|
114 lines
══════════════════════════════════════════════════════════════
2. DIET-BLEND PROBLEM (PLAN: 1902)
══════════════════════════════════════════════════════════════
A.B.C. Animal Feed Company
Markets a product produced by
mixing three(3) materials(grains)
This relatively simple BLEND problem can be expressed as
follows:
#1 =barley #2 =corn #3 =oats
#4 =rice #5 =meat byprod #6 =bones
Components:
B1(#101) will be at least 30 pounds per 100 lbs.
B2(#102) not more than 40 pounds per 100 lbs.
B3(#103) not more than 35 pounds per 100 lbs.
...more information on next view
The equations to satisfy all the components (B1,B2,B3) can
be shown as: (using the TABLE)
component B1: <GE> 0.2*(#1) + 0.45*(#2) + 0.1*(#3) +
0.6*(#4) + 0.5*(#5) + 0.3*(#6)
component B2: <LE> 0.5*(#1) + 0.25*(#2) + 0.2*(#3) +
0.2*(#4) + 0.1*(#5) + 0.2*(#6)
component B3: <LE> 0.3*(#1) + 0.3*(#2) + 0.7*(#3) +
0.2*(#4) + 0.4*(#5) + 0.5*(#6)
The total product weight for with these components will be
100 pounds, therefore:
total weight: (#1) + (#2) + (#3) + (#4) + (#5) + (#6)
=100.
...more information on next view
Similar to demonstration problem no. 1 the OBJECTIVE
FUNCTION " max: profit" will be automatically established by
using the COSTS data statements.
'**********************************************************
'
' A.B.C. Animal Feed Company
'
'**********************************************************
' material cost
'..........................................................
COSTS
#1=0.10/barley, #2=0.18/corn, #3=0.06/oats
#4=0.14/rice, #5=0.22/meat byprods.
#6=0.18/bones;
...more information on next view
'..........................................................
' the BLENDING EQUATIONS can be expressed as
'..........................................................
EQUATIONS
com.b1 0.2*#1 + 0.45*#2 + 0.1*#3 + 0.6*#4 + 0.5*#5 + 0.3*#6
<GE> #101/component B1;
com.b2 0.5*#1 + 0.25*#2 + 0.2*#3 + 0.2*#4 + 0.1*#5 + 0.2*#6
<LE> #102/component B2;
com.b3 0.3*#1 + 0.3*#2 + 0.7*#3 + 0.2*#4 + 0.4*#5 + 0.5*#6
<LE> #103/component B3;
'..........................................................
' the final product will be 100 pounds
'..........................................................
totalw #1 + #2 + #3 + #4 + #5 + #6 <EQ> 100.;
...more information on next view
'..........................................................
' the meat byproducts and bones are further limited
'..........................................................
MAXIMUM #5=10. '..meat by products
#6=12.; '..bones (chicken)
'..........................................................
SET #101=30. '..component B1
#102=40. '..component B2
#103=35.; '..component B3
'..........................................................
...try other screens